What does [STAThread] do above main( ) in C#? I found it hard to understand the stuff found on google but it seems to be something that applies itself to main( ) and is to do with threading??

Is it an attribute? I've just started c# and keep seeing them mentioned but haven't got to that bit yet!